/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_Studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#include "通用弹出菜单.h"


C_Widget* f_通用菜单_节点删除菜单(S_UI渲染环境& ctx, fp_on_菜单项点击 fun) {
	S_菜单创建参数 创建参数 = {
		fun, {
			{u"删除", u"删除",  u"", 0},
		}
	};

	auto* menu = f_ui_创建菜单(ctx, e_纵向, 创建参数);
	return menu;
}

C_Widget* f_通用菜单_属性值右键菜单(S_UI渲染环境& ctx, fp_on_菜单项点击 fun) {
	S_菜单创建参数 创建参数 = {
		fun, {
			{u"插入关键帧", u"", u"", 0},
			{u"插入单项关键帧", u"", u"", 0},
			{u"删除关键帧", u"", u"", 0},
			{u"删除单项关键帧", u"", u"", 0},
		}
	};

	return f_ui_创建菜单(ctx, e_纵向, 创建参数);
}





